home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13459 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  848 b 

  1. Path: news.islandnet.com!usenet
  2. From: Abram Hindle <abehind@islandnet.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Newbie: Need Help with keyboard and timing
  5. Date: 7 Apr 1996 19:21:08 GMT
  6. Organization: Island Net in Victoria, B.C. Canada
  7. Message-ID: <4k94j4$328@sanjuan.islandnet.com>
  8. NNTP-Posting-Host: nettle.islandnet.com
  9.  
  10. Hi!
  11. I really need help with getting keys pressed from the keyboard
  12. but not stopping the program til a key is pressed. What I
  13. want is IBM compatible way of getting input from the keyboard
  14. much like basic's INKEY$ command. It's for a small little
  15. game I'm making.
  16.  
  17. Also, how do I time using milliseconds like the TIMER in
  18. basic.
  19. Here's the basic code:
  20. t = timer
  21. .
  22. .
  23. .
  24. do while t + .1 > timer
  25. so how would I do that in C?
  26. I use Turbo C++ 3.0 or 3.1
  27. Any Help would be great!
  28. please e-mail me at:
  29. abehind@islandnet.com
  30. Abram Hindle
  31.  
  32.  
  33.